package com.example.logindb.sevices;

import com.example.logindb.entity.Route;
import com.example.logindb.repository.RouteRepository;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RouteServiceImpl implements RouteService {
    private RouteRepository routeRepository;
    public RouteServiceImpl(RouteRepository routeRepository)
    {
        this.routeRepository = routeRepository;
    }
    @Override
    public List<Route> findByBlindID(int id)
    {
        return routeRepository.findAllByBlindid(id);
    }

    @Override
    public List<Map<String, Object>> findTopThree() {
        return routeRepository.findTopThree();
    }

//    @Override
//    public List<String> findGeojsonByBlindID(int id) {
//        return routeRepository.findGeoJsonByBlindid(id);
//    }


}